package com.assumejson.mybatis;

import com.assumejson.mybatis.config.AppConfig;
import com.assumejson.mybatis.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author Mr. Li
 * @version 1.0
 * @since 1.0 2021/12/8 13:22
 */
public class MainStart {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
		context.register(AppConfig.class);

		context.refresh();

		UserService userService = context.getBean("userService", UserService.class);
		userService.test();
	}
}
